import http from '@/api/http'
import store from '@/store/index'

/**
 * 将业务所有接口统一起来便于维护
 * 如果项目很大可以将 url 独立成文件，接口分成不同的模块
 * 
 */

export const sign = () => {//签到
    return http.post('/store/sign')
}

export const storelist = () => {//获取tal切换积分商品列表内容
    return http.get('/stroe/productList')
}
export const rankinglist = () => {//获取tal切换排行榜列表内容
    return http.get('/stroe/prorank')
}

export const getsignIn = () => {//获取用户签到信息
    return http.get('/stroe/getsignIn')
}
export const setSignIn = (data) => {//获取用户签到结果
    return http.get('/stroe/setSignIn',data)
}
export const addressFau = () => {//获取用户签到结果
    return http.get('/stroe/addressFau')
}
export const getTasks = () => {//获取用户签到结果
    return http.get('/stroe/task_list')
}
// // 用户获取积分商品兑换列表
// export const orderRrcord = (data) => {
// 	return http.get('/stroe/orderList', data)
// }
// 默认全部导出  import api from '@/common/vmeitime-http/'
export default {
    sign,
    storelist,
    getTasks,
	rankinglist,
	getsignIn,
	addressFau,
	setSignIn
}